<?php 
	
	include("../Model/Connection.php");	
	if (isset($_GET['ID'])){
		$id=$_GET['ID'];
		$gotten = @mysql_query("select IMAGE from images where ID = $id");
		
		while ($row = mysql_fetch_array($gotten)){
			header("Content-type: image/png");
			echo $row['IMAGE'];
		}
		mysql_free_result($gotten);
	}
?>

		